package com.ujs.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ujs.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ujs.eduservice.entity.vo.CourseInfoVo;
import com.ujs.eduservice.entity.vo.CoursePublishVo;
import com.ujs.eduservice.entity.vo.CourseQueryVo;
import com.ujs.eduservice.entity.vo.frontVo.CourseFrontVo;
import com.ujs.eduservice.entity.vo.frontVo.CourseWebVo;
import com.ujs.servicebase.entity.CourseVoOrder;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2023-08-07
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo vo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getPublishCourseInfo(String courseId);

    Map<String, Object> getCourseList(Long current, Long size, CourseQueryVo courseQueryVo);

    void deleteCourseAllInfo(String courseId);

    List<EduCourse> getHotCourse();

    Map<String, Object> getFrontCourseList(CourseFrontVo courseFrontVo, Page<EduCourse> eduCoursePage);

    CourseWebVo getCourseBaseInfo(String courseId);

    CourseVoOrder getCourseInfoById(String courseId);
}
